jQuery(function($){	
	var breadcrumbs = getItemMenu('login');
	var itensMenu = menu.split('|');
	$.each(itensMenu, function(index) {
		breadcrumbs += getItemMenu(itensMenu[index]);
	});
	$("#breadcrumbs ul").html(breadcrumbs);
});

function getItemMenu(item){
	var application = location.pathname.split('/')[1];
	switch (item) {
	case 'login':
		return '<li><a href="/' + application + '/login/">Login</a></li>';
	case 'datasource/cadastro':
		return '<li><a href="/' + application + '/datasource/cadastro">Cadastro</a></li>';
	case 'datasource/dados':
		return '<li><a href="/' + application + '/datasource/dados">Dados</a></li>';
	default:
		return '<li><a href="/' + application + '/login/">Login</a></li>';
	}
}